<?php

class InvoiceMaster extends Zend_Db_Table_Abstract
{
	protected $_name = 'invmaster';

	public function SelectMerchandiseByFuneralHomeId( $locale_id )
	{
		
		$select = $this->getAdapter()->select()
		->from('invmaster', array(
		'item_category'=>'productline',
		'line_number'=>'ContractLineNo',
		'Item_Description'=>'Description',
		'inventory_master_id'=>'Identity',
		'item_amount'=>'Price'
		)
		)
		->where("locale=?", $locale_id);

		$rows = $this->getAdapter()->fetchAll($select);
		if($rows) {
			return $rows;
		}
		return array();
	}
}
?>